#ifndef _WIFI_DRV_H_
#define _WIFI_DRV_H_

#define NVS_WIFI_NAMESPACE      "DEV_WIFI"
#define NVS_WIFI_SSID_KEY       "ssid"
#define NVS_WIFI_PASS_KEY       "password"
// #define NVS_WIFI_SSID_KEY       "SSID"
// #define NVS_WIFI_PASS_KEY       "PASS"
#define SSID_MAX_LEN            32
#define PASS_MAX_LEN            64

#define DEFAULT_SSID            "PMKCX_TEST"           //预设的WiFi
#define DEFAULT_PSWD            "12345678"
#define RECONNECT_TIMEOUT       (60)
#define RECONNECT_INTERVAL      (5)
#define RESPONSE_COUNT          (3)

#define WIFI_CONNECTED_BIT      BIT0
#define WIFI_DISCONNECTED_BIT   BIT1
#define SMARTCONFIG_DONE_BIT    BIT2

#define SC_WIFI_START           "SC WIFI"               //串口指令
#define WIFI_CLEAR              "WIFI CLEAR"
#define SPIFFS_CLEAR            "SPIFFS CLEAR"
#define UART_DATA_TRANS         "TR "

void ConnectToWifi(void);
extern EventGroupHandle_t WifiEventGroup;

typedef struct
{
    bool IsConnected;
    bool IsSmartConfig;
    bool IsConnectServer;
}modelRunningStatus_t;

extern modelRunningStatus_t running;

#endif